import request from '@/utils/request'

// 查询辅助设备列表
export function listAssistDevice(query) {
  return request({
    url: '/device/assistDevice/list',
    method: 'get',
    params: query
  })
}

// 查询辅助设备详细
export function getAssistDeviceById(sbmId) {
  return request({
    url: '/device/assistDevice/' + sbmId,
    method: 'get'
  })
}

// 新增辅助设备
export function addAssistDevice(data) {
  return request({
    url: '/device/assistDevice',
    method: 'post',
    data: data
  })
}

// 修改辅助设备
export function updateAssistDevice(data) {
  return request({
    url: '/device/assistDevice',
    method: 'put',
    data: data
  })
}

// 删除辅助设备
export function delAssistDevice(sbmId) {
  return request({
    url: '/device/assistDevice/' + sbmId,
    method: 'delete'
  })
}

// 导出辅助设备
export function exportAssistDevice(query) {
  return request({
    url: '/device/assistDevice/export',
    method: 'get',
    params: query
  })
}
